package day02;

import java.util.Scanner;

import org.junit.Test;

/**
 * 输入一个IP地址，然后将4段数字分别输出
 * 
 * @author Bonnie
 *
 */
public class Test03 {
	@Test
	public void test() {
		Scanner console = new Scanner(System.in);
		System.out.print("请输入IP地址：");
		String str = console.nextLine();
		String[] ss = str.split("[.]{1,}");
		for (int i = 0; i < ss.length; i++) {
			System.out.println(ss[i]);
		}
		console.close();
	}
}
